package com.free.fs.service.impl;

import com.free.fs.mapper.MessageMapper;
import com.free.fs.model.Message;
import com.free.fs.service.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MessageServieImpl implements MessageService {

    @Autowired
    MessageMapper messageMapper;

    @Override
    public List<Message> queryMessageList(Long file_id) {
        return messageMapper.queryMessageList(file_id);
    }

    @Override
    public int addMessage(Message message) {
        return messageMapper.insert(message);
    }


}
